@if(Auth::user()->hasRole('manager'))
<aside class="main-sidebar">
  <!-- sidebar: style can be found in sidebar.less -->
  <section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
      <div class="pull-left image">
        <img src="{{ url('a/dist/img/avatar5.png') }}" class="img-circle" alt="User Image">
      </div>
      <div class="pull-left info">
        <p>{{ Auth::user()->name }}</p>
        <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
      </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="搜索...">
        <span class="input-group-btn">
          <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
          </button>
        </span>
      </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
      @if(Auth::user()->hasRole('administrator'))
      <li class="header">超级管理员</li>
      <li class="treeview {{isset($parent_active['rbac']) ? $parent_active['rbac'] : ''}}">
        <a href="#">
          <i class="fa fa-th"></i> <span>RBAC 管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li class="{{isset($active['role_tag']) ? $active['role_tag'] : ''}}">
            <a href="{{ url('/api_admin/role') }}"><i class="fa fa-circle-o"></i> 角色管理</a>
          </li>
          <li class="{{isset($active['permission_tag']) ? $active['permission_tag'] : ''}}">
            <a href="{{ url('/api_admin/permission') }}"><i class="fa fa-circle-o"></i> 权限管理</a>
          </li>
        </ul>
      </li>
      <li class="{{isset($active['managers_tag']) ? $active['managers_tag'] : ''}}">
        <a href="{{ url('/api_admin/managers') }}">
          <i class="fa fa-users"></i> <span>管理员用户</span>
        </a>
      </li>
      @endif
      <li class="header">管理列表</li>
      <li class="{{isset($active['dashboard']) ? $active['dashboard'] : ''}}">
        <a href="{{ url('/api_admin') }}">
          <i class="fa fa-dashboard"></i> <span>控制面板</span>
        </a>
      </li>
      <li class="header">imlooke管理列表</li>
      <li class="{{isset($active['users']) ? $active['users'] : ''}}">
        <a href="{{ url('/api_admin/users') }}">
          <i class="fa fa-users"></i> <span>用户</span>
        </a>
      </li>
      <li class="{{isset($active['activities']) ? $active['activities'] : ''}}">
        <a href="{{ url('/api_admin/activities') }}">
          <i class="fa fa-calendar"></i> <span>活动</span>
        </a>
      </li>
      <li class="{{isset($active['tweets']) ? $active['tweets'] : ''}}">
        <a href="{{ url('/api_admin/tweets') }}">
          <i class="fa fa-bullhorn"></i> <span>用户分享</span>
        </a>
      </li>
      <li class="{{isset($active['feedback']) ? $active['feedback'] : ''}}">
        <a href="{{ url('/api_admin/feedback') }}">
          <i class="fa fa-comments"></i> <span>反馈</span>
        </a>
      </li>
      <li class="header">第三方服务</li>
      <li>
        <a href="http://mail.hichina.com" target="_blank">
          <i class="fa fa-envelope"></i> <span>登录企业邮箱</span>
        </a>
      </li>
      <li>
        <a href="https://account.aliyun.com/login/login.htm" target="_blank">
          <i class="fa fa-circle-o text-red"></i> <span>阿里云</span>
        </a>
      </li>
        <li>
          <a href="https://auth.hwclouds.com/authui/login#/login" target="_blank">
            <i class="fa fa-circle-o text-yellow"></i> <span>华为企业云</span>
          </a>
        </li>
        <li>
          <a href="https://tongji.baidu.com/web/welcome/login" target="_blank">
            <i class="fa fa-circle-o text-aqua"></i> <span>百度统计</span>
          </a>
        </li>
    </ul>
  </section>
  <!-- /.sidebar -->
</aside>
@endif